<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>传智书城首页</title>
<%--导入css和js--%>
<link rel="stylesheet" href="${pageContext.request.contextPath }/client/css/main.css" type="text/css"/>
	
<link rel="stylesheet" href="${pageContext.request.contextPath }/client/css/index.css" type="text/css"/>
 <script type="text/javascript" src="${pageContext.request.contextPath }/client/js/index.js"></script>

</head>
<body>
	<!-- 1.网上书城顶部 start -->
       <%@include file="head.jsp"%>
<!-- 网上书城顶部  end -->
<!--2. 网上书城菜单列表  start -->
       <%@include file="menu_search.jsp" %>
     <div id="slide"> 
	
	<ul class="slide_num">
		<li class="hot">1</li>
		<li>2</li>
		<li>3</li>
		<li>4</li>
		<li>5</li>
	</ul>
	<div class="slide_image">
		<a href="#"><img src="${pageContext.request.contextPath }/client/images/index_ad1.jpg" class="hot"/></a> 
		<a href="#"><img src="${pageContext.request.contextPath }/client/images/index_ad2.jpg" /></a>
		<a href="#"><img src="${pageContext.request.contextPath }/client/images/index_ad3.jpg" /></a>
		<a href="#"><img src="${pageContext.request.contextPath }/client/images/index_ad4.jpg" /></a>
		<a href="#"><img src="${pageContext.request.contextPath }/client/images/index_ad5.jpg" /></a>
	</div>		
</div> 
       
     <div id="divcontent">
		<table width="900px" border="0" cellspacing="0">
			<tr>
				<td width="497">
					<img src="${pageContext.request.contextPath}/client/images/billboard.gif" width="497" height="38" />
					<table cellspacing="0" class="ctl">
						<tr>
							<td width="485" height="100%">${n.details }</td>
						</tr>
					</table>
				</td>
				<td style="padding:5px 15px 10px 40px">
					<table width="100%" border="0" cellspacing="0">
						<tr>
							<td>
								<img src="${pageContext.request.contextPath}/client/images/hottitle.gif" width="126" height="29" />
							</td>
						</tr>
					</table>
					<table width="100%" border="0" cellspacing="0">
						<tr>
						<c:forEach items="${pList }" var="pArray">
							<td style="width:80; text-align:center">
								<a href="${pageContext.request.contextPath}/findProductById?id=${pArray[0]}">
									<img src="${pageContext.request.contextPath }${pArray[2]}" width="102" height="130" border="0" /> 
								</a>
								<br/> 
								<a href="${pageContext.request.contextPath}/findProductById?id=${pArray[0]}">${pArray[1]}</a>
								<%-- <br />作者:${pArray[2] } --%>
							</td>
						</c:forEach>
						</tr>
					</table>
				</td>
			</tr>
		</table>
	</div>
       <!--4. 网上书城下方显示 start -->
     <%@ include file="foot.jsp" %>
<!-- 网上书城下方显示 start -->
</body>
</html>